package com.daigoudao.web.dao;

import java.util.List;

import com.daigoudao.web.model.SimpleBuyModel;

public interface ISimpleBuyDao {

	/**
	 * 查询与指定求购信息相关联的搭车求购信息
	 * 
	 * @param wantId
	 * @return
	 * @throws Exception
	 */
	public List<SimpleBuyModel> querySimpleBuys(SimpleBuyModel simpleBuyModel)
			throws Exception;

	/**
	 * 根据id查询搭车求购信息
	 * 
	 * @param simpleId
	 * @return
	 * @throws Exception
	 */
	public SimpleBuyModel querySimpleBuy(int simpleId) throws Exception;

	/**
	 * 搭车求购
	 * 
	 * @param simpleBuyModel
	 * @throws Exception
	 */
	public void addSimpleBuy(SimpleBuyModel simpleBuyModel) throws Exception;

	/**
	 * 获取搭车求购数
	 * 
	 * @param simpleBuyModel
	 * @return
	 * @throws Exception
	 */
	public int getSimpleBuyCount(SimpleBuyModel simpleBuyModel)
			throws Exception;

	public void updateStatus(SimpleBuyModel simpleBuyModel) throws Exception;
}
